this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};this.BX.Landing.Ui=this.BX.Landing.Ui||{};this.BX.Landing.Ui.Panel=this.BX.Landing.Ui.Panel||{};this.BX.Landing.Ui.Panel.Formsettingspanel=this.BX.Landing.Ui.Panel.Formsettingspanel||{};(function(e,n,t,s,i,a,o,r){"use strict";var g="/bitrix/js/landing/ui/panel/formsettingspanel/content/agreements/dist/images/message-icon.svg";var l=function(e){babelHelpers.inherits(r,e);function r(e){var l;babelHelpers.classCallCheck(this,r);l=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(r).call(this,e));l.setEventNamespace("BX.Landing.UI.Panel.FormSettingsPanel.AgreementsContent");var d=new s.HeaderCard({title:t.Loc.getMessage("LANDING_AGREEMENTS_TITLE")});var m=new i.MessageCard({id:"agreementsMessage",header:t.Loc.getMessage("LANDING_AGREEMENTS_MESSAGE_HEADER"),description:t.Loc.getMessage("LANDING_AGREEMENTS_MESSAGE_DESCRIPTION"),icon:g,restoreState:true});var L=new a.FormSettingsForm({id:"agreementsList",fields:[new o.AgreementsList({selector:"agreements",formOptions:l.options.formOptions,agreementsList:l.options.agreements,value:l.options.formOptions.data.agreements})]});if(!m.isShown()){n.Dom.style(d.getLayout(),"margin-bottom","0");n.Dom.style(L.getLayout(),"margin-top","-19px")}m.subscribe("onClose",(function(){n.Dom.style(d.getLayout(),"margin-bottom","0");n.Dom.style(L.getLayout(),"margin-top","-19px")}));l.addItem(d);l.addItem(m);l.addItem(L);return l}return r}(r.ContentWrapper);e.default=l})(this.BX.Landing.Ui.Panel.Formsettingspanel.Content=this.BX.Landing.Ui.Panel.Formsettingspanel.Content||{},BX,BX.Landing,BX.Landing.UI.Card,BX.Landing.UI.Card,BX.Landing.UI.Form,BX.Landing.UI.Field,BX.Landing.UI.Panel);
//# sourceMappingURL=agreements.bundle.map.js